package cn.clq.org.domain;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.clq.basic.domain.BaseDomain;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
 * <p>
 * 
 * </p>
 *
 * @author chenlei
 * @since 2022-06-12
 */
@Data
public class Shop extends BaseDomain{

    private static final long serialVersionUID = 1L;
    @Excel(name = "店铺名字" ,orderNum = "1", width = 30, isImportField = "true_st")
    private String name;
    @Excel(name = "联系电话" ,orderNum = "2", width = 30, isImportField = "true_st")
    private String tel;
    //后端往前端传时间
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @Excel(name = "创建时间", orderNum = "3", width = 30, isImportField = "true_st",exportFormat ="yyyy-MM-dd")
    private Date registerTime = new Date();
    /**
     * 待审核：0
     * 审核通过待激活：1
     * 已激活：2
     * 驳回：-1
     * 拒绝：-2
     */
    @Excel(name = "状态" ,replace = { "待审核_0", "审核通过待激活_1", "已激活_2", "驳回_-1", "拒绝_-2" }, orderNum = "4", width = 30, isImportField = "true_st")
    private Integer state = 0;
    @Excel(name = "地址" ,orderNum = "5", width = 30, isImportField = "true_st")
    private String address;
    @Excel(name = "店铺图片" ,orderNum = "6", width = 30, isImportField = "true_st")
    private String logo;
    private Long adminId;
    //店长
    private Employee admin;
    //审核日志
    private List<ShopAuditLog> shopAuditLogs;

}
